public class ManageStudents {

public List<NewYearGrade__c> yeargrade;

public List<NewYearGrade__c> getYeargrade()
{
     if (yeargrade== null) {
        yeargrade= new List<NewYearGrade__c>{};
        for (NewYearGrade__c item :
        [SELECT Name,ApplianceStatus__c,Chinese__c,English__c,ExamLevel__c,IsTest__c,Math__c,NewSchoolStudents__c,TaotalGrade__c
        FROM NewYearGrade__c]) {
        yeargrade.add(item);
        }
          }
    return yeargrade;
}
public String  message{get;set;}
public PageReference dosave() {

 Database.update(yeargrade);
 message ='修改成功';
 return null;
}

}